// Appelle des fonctions spécifiques pour faire marcher le jeu.


#include <iostream>
#include <SDL.h>
#include "audio.h"
#include "controls.h"
#include "files.h"
#include "init_modules.h"
#include "saves.h"
#include "window_handler.h"

int main(int argc, char* args[]){
	
  init();
  nwindow();
  bool quit = false;
  
  while(!quit){
  
    SDL_Event e;
    SDL_WaitEvent(&e);
    
    if(e.type==SDL_QUIT){
    
      quit = true;
    
    }
    
    switch(e.key.keysym.sym){
    
    case SDLK_UP:
    
      resizewindow(800, 600);
      
      break;
    
    case SDLK_DOWN:
    
      resizewindow(640, 480);
      
      break;
    
    }
  
  }
  
  cwindow();
  shutdown();
  return 0;

}
